<template>
  <div>
    <div class="title"><span class="iconfont iconcolor">&#xe6a0;</span>周末去哪玩</div>
    <div class="recomment-item" v-for="item in list" :key="item.id">
      <div class="recomment-item-left">
        <img :src="item.imgUrl" alt="">
      </div>
      <div class="recomment-item-right" >
        <p class="item-title">{{item.title}}</p>
        <p class="item-desc">{{item.desc}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'homeweekend',
  props: {
    list: Array
  }
}
</script>

<style scoped>
  .title{
    background-color: #f5f5f5;
    line-height: 36px;
    padding-left: 15px;
    margin: 12px 0;
  }
  .iconcolor{
    color: red;
    margin-right: 3px;
  }
  .recomment-item{
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .recomment-item-left{
    width: 100%;
    margin-right: 12px;
  }
  .recomment-item-left img{
    width: 100%;
  }
  .recomment-item-right{
    width: 100%;
    display: flex;
    padding: 0 8px;
    flex-direction: column;
  }
  .item-title{
    font-size: 1.21rem;
    margin-top: 5px;;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .item-desc{
    color: #bebebe;
    margin-top: 3px;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

</style>
